package one.stand.fallback;

import one.stand.entity.websocket.CommodityInfoEntity;
import one.stand.entity.websocket.CompanyInfoEntity;
import one.stand.feign.CrmFegin;
import one.stand.model.ResultModel;
import one.stand.request.BusinessCardRequest;
import one.stand.request.ConsultRecordRequest;
import one.stand.response.BusinessCardResponse;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Component
public class CrmFallBack implements CrmFegin {
    @Override
    public ResultModel<CompanyInfoEntity> messageGetCompanyInfo(Long cardId) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<CommodityInfoEntity> getSendMessage(Long specId) {
        return ResultModel.faultTolerant();
    }


    @Override
    public ResultModel<BusinessCardResponse> getCardPhone(BusinessCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel unreadMessage(Integer sendUserId, Integer receiveUserId, String text, Integer type) {
        return ResultModel.faultTolerant();
    }
}
